Functions


Analyzing Characters

CharacterByteType Identifies a byte in a text buffer as a 1-byte character or as the first or second byte of a 2-byte character.
CharacterType Returns a variety of information about the character represented by a given byte, including its type, class, orientation, direction, case, and size (in bytes).
FillParseTable Helps your application to quickly process a buffer of mixed 1-byte and 2-byte characters.

Checking and Setting Script Manager Variables

GetScriptManagerVariable Retrieves the value of the specified Script Manager variable.
SetScriptManagerVariable Sets the specified Script Manager variable to the value of the input parameter.

Checking and Setting Script Variables

GetScriptVariable Retrieves the value of the specified script variable from the specified script system.
SetScriptVariable Sets the specified script variable for the specified script system to the value of the input parameter.

Checking and Setting the System Direction

GetSysDirection Returns the current value of SysDirection, the global variable that determines the system direction (primary line direction).
SetSysDirection Sets the value of SysDirection, the global variable that determines the system direction (primary line direction).

Determining Script Codes From Font Information

FontScript Returns the script code for the current script (usually the font script).
FontToScript Translates a font family ID number into its corresponding script code, if that script system is currently enabled.
IntlScript The IntlScript function identifies the script system used by the Text Utilities date-formatting, time-formatting, and string-sorting functions.

Directly Accessing International Resources

ClearIntlResourceCache Clears the application’s international resources cache, which contains the resource ID numbers of the string-manipulation ('itl2') and tokens ('itl4') resources for the current script.
GetIntlResource Returns a handle to one of the international resources
GetIntlResourceTable Gives you access to a specific word-selection, line-break, number-parts, untoken, or whitespace table from the appropriate international resource.

Making Keyboard Settings

KeyScript Changes the keyboard script (the script system used for keyboard input), changes the keyboard layout (the mapping of keys to characters) or input method within the current keyboard script (a facility for entering 2-byte characters), or makes a setting related to text input, using the supplied value.

Tokenization

IntlTokenize Allows your application to convert text into a sequence of language-independent tokens.

Transliteration

TransliterateText Converts characters from one subscript to the closest possible approximation in a different subscript within the same 2-byte script system.

Miscellaneous

CharByte
CharType
GetScript
GetScriptQDPatchAddress
GetScriptUtilityAddress
IsCmdChar
ParseTable
SetIntlResource
SetScript
SetScriptQDPatchAddress
SetScriptUtilityAddress
Transliterate

© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)